package com.proxy.spring.demo;

import com.proxy.spring.hello.CalculateService;

import javax.annotation.Resource;

//Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding

@Resource
public class HelloAutowiredInterface {

    @Resource
    CalculateService calculateService;

    public void sayHello(){
        System.out.println("HelloAutowiredInterface.sayHello");
        String result = calculateService.getResult("autowired....+");
        System.out.println(result);
    }
}
